package org.amicofragile.simpledsl

import org.codehaus.groovy.tools.shell.commands.InspectCommand;

class Optimizer5 extends Optimizer3 {
	private List list
	
	static process(Closure conf) {
		def opt = new Optimizer5()
		conf.delegate = opt
		conf()
		opt.process opt.list
	}
	
	def list(List list) {
		this.list = list
	}
	
	def criteria(Closure criteria) {
		this.criteria = criteria
	}
	
	def rules(Closure rules) {
		rules.delegate = this
		rules()
	}
}
